package com.hzw.saas.service.user.mapper;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hzw.saas.api.user.bo.UserAccountBO;
import com.hzw.saas.api.user.bo.UserAccountProfileBO;
import com.hzw.saas.service.user.model.Customer;
import com.hzw.saas.service.user.model.UserAccount;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author zzl
 * @since 12/21/2020
 */
@Mapper
public interface UserAccountMapper extends BaseMapper<UserAccount> {

    IPage<UserAccountProfileBO> searchUserByQueryAndGroup(Page<Object> convert, @Param("query") UserAccountBO query, @Param("userIds") List<String> userIds);

    UserAccount queryUser(@Param("fuzzyString") String fuzzyString,@Param("levelIds")  List<String> levelIds,@Param("isOpen")  Boolean isOpen, @Param("channelTypes") List<String> channelTypes,@Param("startTime")  Date startTime, @Param("endTime") Date endTime);
}
